<%@page import="java.util.Date"%>
<%
	// do some simulate transfer money
	String cash = request.getParameter("cash");
	String to = request.getParameter("to");	
	
	if(cash != null){
		System.out.println("******Oops, your have been transferred " + cash + " to " + to + " on " + new Date());
	}
	
	cash = cash == null ? "" : cash;
	to = to == null ? "" : to;
%>

<form action="transferMoney.jsp" method="post">
  Transfer cash: <input type="text" name="cash" value="<%=cash%>"/><br/>
  To: <input type="text" name="to" value="<%=to%>"/><br />
  <input type="submit" value="Submit" />
</form>
